package com.devilvan.betrice.mg.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;

/**
* @author Evad.Wu
* @Description 198763-预览图片表 映射
* @date 2023-01-26
*/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "MG_PREVIEW_PIC")

@Entity
@Table(name = "MG_PREVIEW_PIC")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "198763-预览图片表 映射")
public class MgPreviewPicPo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = -1851965338691888197L;
    @Schema(description = "业务ID")
    @TableField(value = "PID")
    @Column(name = "PID", columnDefinition = "VARCHAR(32) NOT NULL COMMENT '业务ID'")
    private String pid;
    @Schema(description = "预览图片URL")
    @TableField(value = "PIC_URL")
    @Column(name = "PIC_URL", columnDefinition = "VARCHAR(128) NOT NULL COMMENT '预览图片URL'")
    private String picUrl;
}
